package com.design.observer.socialmedia;

public class ObserverSocialMediaDemo {
    public static void main(String[] args) {
        SocialMediaInfluencer influencer = new SocialMediaInfluencer("John");
        User user1 = new User("Alice");
        User user2 = new User("Bob");

        influencer.addFollower(user1);
        influencer.addFollower(user2);

        influencer.notifyFollowers("New video is up!");

        influencer.removeFollower(user2);

        influencer.notifyFollowers("Live stream starting soon!");
    }
}
